package com.qingcloud.task.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 任务关联信息表
 * </p>
 *
 * @author zhengjibin
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TdTaskRelation对象", description="任务关联信息表")
@TableName(value = "td_task_telation")
public class TaskRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "关联数据id")
    private String relationId;

    @ApiModelProperty(value = "关联类型，1=设备，2=点位，3=企业")
    private Integer relationType;


}
